import React, { Component,PropTypes} from 'react';
import { Layout, Menu} from 'element-react';
import './listitem.less';
class ListItem extends Component {
    constructor() {
        super();
    }

    static defaultProps = {
        text:"",
        className:""
   }

    render() {

        return (
            <div className={`list-item ${this.props.className}`}>
                <img></img>
                <span>{this.props.text}</span>
            </div>
        );
    }
}
ListItem.propTypes = {
  text:PropTypes.string.isRequired,
  className:PropTypes.string
}
export default ListItem;